import Taro from '@tarojs/taro'
import {Text, View} from '@tarojs/components'
import './index.scss'

export default function ReportAnalysis({ rows }) {
  return (
    <View className='info-container'>
      {
        rows.map((row, index) => (
          <View key={index} className='info-wrapper'>
            <Text className='num'>{ row.value }</Text>
            <Text className='text'>{ row.label}</Text>
            {
              index + 1 < rows.length && <Text className='line' />
            }
          </View>
        ))
      }
    </View>
  )
}

